package zzg.study.client.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import zzg.study.protocol.response.LogoutResponsePacket;
import zzg.study.util.SessionUtil;

/**
 * @Classname LogoutResponseHandler
 * @Description 处理登出响应
 * @Date 2023/12/10 1:01
 * @Author zhuzhenguo
 */
public class LogoutResponseHandler extends SimpleChannelInboundHandler<LogoutResponsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, LogoutResponsePacket logoutResponsePacket) {
        SessionUtil.unBindSession(ctx.channel());
    }
}
